home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Games / Team17-HDinst / Assassin / Install-Assassin < prev    next >
Text File  |  1997-09-07  |  2KB  |  88 lines

  1.  
  2. ;----------------------------
  3.  
  4. ;try to figure out a place where the user usually installs his games
  5. (if (exists "Games:" (noreq) )
  6.     (set @default-dest "Games:")
  7.     (if (exists "SYS:Games" (noreq) )
  8.         (set @default-dest "SYS:Games")
  9.         (if (exists "Work:Games" (noreq) )
  10.             (set @default-dest "Work:Games")
  11.             (if (exists "JEUX:" (noreq) )
  12.                (set @default-dest "JEUX:")
  13.                (set @default-dest "SYS:")
  14.             )
  15.         )
  16.     )
  17. )
  18.  
  19.  
  20. (set default-dest
  21. (askdir
  22.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  23.     (help @askdir-help)
  24.     (default @default-dest)
  25.     (disk)
  26. )
  27. )
  28. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch) or on my site")
  29.  
  30. (set @default-dest default-dest)
  31.  
  32. (set #dest (tackon @default-dest @app-name))
  33. (set #CI_unit
  34.     (askchoice
  35.         (prompt "From which disk unit do you want\nto install the game")
  36.         (help    @askoptions-help)
  37.         (choices
  38.            "DF0:"
  39.            "DF1:"
  40.            "DF2:"
  41.            "DF3:"
  42.         )
  43.     )
  44. )
  45.  
  46. (set #CI_drive ("DF%ld:" #CI_unit))
  47.  
  48.  
  49. (makedir #dest
  50.     (help @makedir-help)
  51.     (infos)
  52. )
  53.  
  54. ;----------------------------
  55.  
  56. (copyfiles
  57.     (help @copyfiles-help)
  58.     (source "AssassinHD")
  59.     (dest #dest)
  60.     (infos)
  61. )
  62.  
  63.  
  64. (copyfiles
  65.     (help @copyfiles-help)
  66.     (source "asshd.readme")
  67.     (dest #dest)
  68.     (infos)
  69. )
  70.  
  71. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  72.     (if
  73.         (= 0 (run ("disk2file %ld \"%s/assassin.d1\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  74.         ("")
  75.         (abort "\"disk2file\" must be in your PATH !")
  76.     )
  77.  
  78. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  79.     (if
  80.         (= 0 (run ("disk2file %ld \"%s/assassin.d2\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  81.         ("")
  82.         (abort "\"disk2file\" must be in your PATH !")
  83.     )
  84.  
  85.  
  86. (exit)
  87.  
  88.